//
//  AWBaseController.swift
//  WeiBo
//
//  Created by AaronWei on 2017/6/4.
//  Copyright © 2017年 AaronWei. All rights reserved.
//

import UIKit

class AWBaseController: UITableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        setupBarButtonItem()
        
    }

    private func setupBarButtonItem() {
        
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "注册", target: self, action: #selector(leftBarButtonDidClicked))
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "登录", target: self, action: #selector(rightBarButtonDidClicked))
        
    }
    
    @objc private func leftBarButtonDidClicked() {
        
        print("left")
        
    }
    
    @objc private func rightBarButtonDidClicked() {
        
        print("right")
        
    }
    
}
